require(["./config"],function(){
  require(["jquery","swiper","loadHF"],function($,Swiper){
    // 显示轮播图
      function Swiperpic(){
        this.loadSwiper();
      }

      Swiperpic.prototype={
        constructor:Swiperpic,
        loadSwiper(){
          new Swiper ('.swiper-container', {
    		    loop: false, // 循环模式选项
            // 如果需要分页器
             pagination: {
               el: '.swiper-pagination',
             },

             // 如果需要前进后退按钮
             navigation: {
               nextEl: '.swiper-button-next',
               prevEl: '.swiper-button-prev',
             },

             // 如果需要滚动条
             scrollbar: {
               el: '.swiper-scrollbar',
             },
      		    autoplay: true
		      })
        }
      }

      new Swiperpic();
    })
  })
